﻿@model List<smartcrm.WorkFlow>

<script src="../../Scripts/workflow.js"></script>

<div class="FR">
<input type="button" value="新增" id="btnNew" />
</div>
<div class="list">
<table id="tWorkFlow">
<thead>
<tr>
<th style="width:15%">名称</th>
<th>描述</th>
<th style="width:10%">操作</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
        {
            <tr>
                <td>@Html.DisplayFor(modelItem => item.WorkFlowName)</td>
                <td>@Html.DisplayFor(modelItem => item.WorkFlowDescription)</td>                                
                <td>
                    <img src="../../Images/grid/edit.png" title="编辑" onclick="javascript:EditWorkFlow('@item.WorkFlowNo')" />
                    <img src="../../Images/grid/delete.png" title="删除"  onclick="javascript:DeleteWorkFlow('@item.WorkFlowNo')" /> 
                    <img src="../../Images/grid/settings.png" title="流程详细步骤"  onclick="javascript:location.href='/System/WorkFlowDetail?WorkFlowNo=@item.WorkFlowNo'" /> 
 
                </td>
            </tr>
        }
</tbody>
</table>
</div>

<div id="divWorkFlow" title="流程信息" style="display:none">      
    <div id="divWorkFlowContent" style="overflow-y: auto; height: 280px;">          
        @using (Html.BeginForm())
        {
            <table class="font85 tableEdit">               
                <tr>
                    <td class="label">流程名称</td>
                    <td>
                        @Html.TextBox("WorkFlowName", null, new { maxlength = "50" })&nbsp;<span class="redStar">*</span>                                           
                    </td>
                </tr>               
                <tr>
                    <td class="label">流程描述</td>
                    <td>
                        @Html.TextArea("WorkFlowDescription", null, new { maxlength = "50" })                       
                     </td>
                </tr>              
                                      
            </table> 
            <br />
            <span id="errorMessage" class="errorSpan"></span>       
            @Html.Hidden("WorkFlowNo")     
        }
    </div>  
    <div style="text-align:right;">  
       <input type="button" id="btnSave" value="保存" />
       <input type="button" id="btnCancel" value="取消" />    
    </div>  
</div>  
